Skip to content

One Chronobox per wallet, at one address on every network - #50

Open
juliaklaue wants to merge 11 commits into
mainfrom
one-box-per-wallet
Open

juliaklaue wants to merge 11 commits into
mainfrom
one-box-per-wallet

Conversation

@juliaklaue

@juliaklaue juliaklaue commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

A wallet has one Chronobox: the Safe at index 0 of the Chronobox salt, at the same address on every network.

The address

The Safe proxy factory (Safe 1.4.1, createProxyWithNonce) makes it from the 1 of 1 setup of the wallet (owners [wallet], threshold 1, no module, guard or handler) and the salt nonce uint256(keccak256("zodiac-timebox:v1")). So the address depends only on the wallet address. chronoboxOf(wallet) in src/lib/chronobox.ts returns it. Example: 0x3C44…93BC → 0x9825C31C59bfC49b6C20108dcF0E5cd93DE23806.

What changes

  • The setup makes the wallet's one Chronobox, or goes on with it when its first step already ran. A wallet whose Chronobox is set up goes to it instead of a new setup.
  • No list and no redirect: the start page of a connected wallet is its Chronobox, or the setup when it has none. One read decides it, and the address of the page stays /. The setup has no Close on its first step any more (it led back to itself).
  • Any Chronobox can be opened by its address from "Open a Chronobox by its address" in the wallet menu (#/open): for a guardian, another network, or a Chronobox handed over to this wallet.
  • Above the setup, a note says that the connected wallet has no Chronobox on this network yet, and points to switching the account or opening one by its address. It shows only when this browser remembers a Chronobox of another wallet, or of this wallet on another network; a first visit goes into the setup without it.
  • Dev bar: each test account says what its Chronobox on the fork is like (no Chronobox, setup not finished, empty, what is locked, how many withdrawals wait). The anvil accounts are in one shared list, src/dev-accounts.ts.
  • The app reads one address per wallet, instead of walking up to 100 indexes (discover() is gone). A Chronobox at another index from before is no longer found: this is an alpha.
  • README: the address, as above.

State

npm run check, npm test (82) and npm run build pass. Checked on a local fork: the start page with a wallet that has its Chronobox, and #/new going to it. codex review --base origin/main, three rounds. Dismissed on purpose, as this is an alpha and reads stay at one per wallet: older Chronoboxes at another index are no longer found; Chronoboxes watched as a guardian, or handed over to this wallet (a wallet change or a recovery), are not on the start page and are opened by their address. For a recovery that is fine: open it by address, take the money out, and put it into the new wallet's own Chronobox.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds

@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
chronobox Ready Ready Preview Nov 27, 2026 1:53pm UTC
chronobox-watcher Ready Ready Preview Nov 27, 2026 1:53pm UTC

Request Review

juliaklaue and others added 10 commits November 27, 2026 14:36
A wallet has one Chronobox: the Safe at index 0 of the Chronobox salt, the same
address on every network. The setup makes it or goes on with it, and a wallet
whose Chronobox is set up goes to it instead. The start page lists that one
(and those the wallet watches as a guardian), without "Create another".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
From the review: a wallet that made several Chronoboxes before the one-per-
wallet rule still finds them all from the chain, so no money is out of sight;
only new ones are made at the one address. When the list shows Chronoboxes of
other networks, or watched ones, but none of its own here, the start page
offers "Create my Chronobox on <network>".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
The start page reads one address, the wallet's Chronobox, instead of walking
up to 100 indexes. discover() goes, and the browser's list counts index 0
only. A Chronobox at another index from before is not found any more; this
is an alpha.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
…or into the setup

One read decides it. The list of what this browser remembers is left only
for when the wallet's network does not answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
The account list reads every account's Chronobox from the local fork and
names its state: no Chronobox, setup not finished, empty, what is locked in
it, and how many withdrawals wait. With the Safe kind, it is the Safe of
each account. The anvil accounts are in one list (src/dev-accounts.ts) that
the test wallet and the bar share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
… setup

The start page of a connected wallet shows its Chronobox right there, or the
setup when it has none: one read decides it, and the address of the page stays
"/". A finished setup leads back to it. Any Chronobox can still be opened
by its address, from "Open a Chronobox" in the footer (#/open), for a
guardian or another network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
The setup is the start page of a wallet without a Chronobox, so Close led
back to itself and did nothing. Later steps keep Back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
A note names the connected wallet and the network, so that someone whose
Chronobox is on another account sees it at once. It points to switching the
account in the wallet, or opening a Chronobox by its address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
The link sits in the menu of the connected wallet, next to Disconnect, and
closes the menu. The note above the setup links to the same page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
The primary button of the top comes back at the end of the page, above the
link that opens any Chronobox by its address.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
@juliaklaue
juliaklaue marked this pull request as ready for review November 27, 2026 13:39
@jfschwarz
jfschwarz requested a review from jomoormann November 27, 2026 13:49
… elsewhere

A first visit, from the landing page or not, goes into the setup without it.
It shows when this browser remembers a Chronobox of another wallet, or of
this wallet on another network: then the person may be on the wrong account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBnfGy2dpC9crUKQ5e2hds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant